﻿<%@ Page Language="C#" MasterPageFile="~/admin/ADAdminLayout.master" AutoEventWireup="true"
    CodeFile="quan_ly_mua_hang.aspx.cs" Inherits="admin_quan_ly_mua_hang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="block" id="block-tables">
        <div class="content">
            <h2 class="title">
                Thành Viên</h2>
            <div class="inner">
                <div class="group">
                    <label>
                        Từ khóa:</label>
                    <asp:TextBox ID="TextBox1" runat="server" class="text_field" size="60"></asp:TextBox>
                
                    <button class="button slim-button" type="submit">
                        <img src="./images/search.png" alt="Tìm kiếm">
                        Tìm kiếm</button>
                </div>
                <br />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True"
                    AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSourceThanhVien"
                    CssClass="table">
                    <Columns>
                        <asp:BoundField DataField="id_khuyen_mai" HeaderText="Khuyến mãi" 
                            SortExpression="id_khuyen_mai" />
                        <asp:BoundField DataField="id_thanh_vien" HeaderText="Người mua" 
                            SortExpression="id_thanh_vien" />
                        <asp:BoundField DataField="gia_goc" HeaderText="Giá" 
                            SortExpression="gia_goc" />
                        <asp:BoundField DataField="ho_ten_nguoi_nhan" HeaderText="Người nhận" 
                            SortExpression="ho_ten_nguoi_nhan" />
                        <asp:BoundField DataField="dia_chi_giao_hang" HeaderText="Địa chỉ" 
                            SortExpression="dia_chi_giao_hang" />
                        <asp:BoundField DataField="so_dt_lien_lac" HeaderText="Số đt" 
                            SortExpression="so_dt_lien_lac" />
                        <asp:BoundField DataField="da_thanh_toan" HeaderText="Đã thanh toán" 
                            SortExpression="da_thanh_toan" />                        
                        <asp:BoundField DataField="ma_phieu" HeaderText="Mã coupon" 
                            SortExpression="ma_phieu" />
                        <asp:HyperLinkField DataNavigateUrlFields="id" 
                            DataNavigateUrlFormatString="in_phieu.aspx?id={0}" Text="In phiếu" />
                        
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSourceThanhVien" runat="server" ConnectionString="<%$ ConnectionStrings:babydealConnectionString %>"
                    SelectCommand="SELECT * FROM mua_hang">
                </asp:SqlDataSource>
            </div>
        </div>
    </div>
</asp:Content>
